import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
import tim from './common/tim/tim.js'
import TIM from 'tim-js-sdk'
import COS from 'cos-wx-sdk-v5';
import store from '@/store';
import commen from './common/commen.js'
Vue.use(uView);

import selfPopupDialog from '@/components/self_popup_dialog/self_popup_dialog.vue'
import selfPopupMessage from '@/components/self_popup_message/self_popup_message.vue'

import jiekou,{base_url_java} from './common/interface.js';
import util from './common/util.js';
import nodata from '@/components/nodata/nodata.vue'
// 引入uView提供的对vuex的简写法文件
let vuexStore = require('@/store/$u.mixin.js')
Vue.mixin(vuexStore)

Vue.config.productionTip = false

Vue.prototype.$jiekou = jiekou;
Vue.prototype.$base_url_java = base_url_java;
Vue.prototype.$util = util;
Vue.prototype.tim = tim.tim  			//tim sdk 引入后生成的tim服务
Vue.prototype.$TIM = TIM	
Vue.prototype.$store = store
Vue.prototype.$commen = commen
tim.tim.registerPlugin({'cos-wx-sdk': COS});
Vue.component('selfPopupMessage', selfPopupMessage)
Vue.component('selfPopupDialog', selfPopupDialog)
Vue.component('nodata', nodata)

App.mpType = 'app'

const app = new Vue({
	store,
    ...App
})
app.$mount()
